package com.easy.easylibdemo.ui.main.adapter;

import android.content.Context;

import com.easy.easylibdemo.R;
import com.easy.easylibdemo.ui.main.model.DemoBean;
import com.guyj.CommonAdapter;
import com.guyj.base.ViewHolder;

import java.util.List;

/**
 * 作　　者: guyj
 * 修改日期: 2016/12/12
 * 描　　述:
 * 备　　注:
 */
public class MainListAdapter extends CommonAdapter<DemoBean> {

    public MainListAdapter(Context context, int layoutId, List<DemoBean> datas) {
        super(context, layoutId, datas);
    }

    @Override
    protected void convert(ViewHolder holder, DemoBean o, int position) {
        holder.setText(R.id.tv_name,o.getName());
        holder.setOnItemChildClickListener(R.id.tv_name);
    }
}
